################################################
#
# BiscuitOS-MEMBLOCK-memblock_alloc_from
#
################################################
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_NAME        := BiscuitOS-MEMBLOCK-memblock_alloc_from
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_VERSION     := $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_VERSION)
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_SITE        := $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_URL)
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_GITHUB      := $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_GITHUB)
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_SUBNAME     :=
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_BUILDARCH   := $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_BUILDARCH)
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_DIR         := $(srctree)/package/MEMBLOCK/BiscuitOS-MEMBLOCK-memblock_alloc_from
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_PATCH       := $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_DIR)/patch
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_BSBIT       := BiscuitOS-MEMBLOCK-memblock_alloc_from-$(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_VERSION).bsbit
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_OUT         :=
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_SCRIPTS     := $(srctree)/scripts/package/package-kernel-any.sh
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_TAR         := $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_TAR)
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_PACKAGE     :=
PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_CONFIG      := $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_CONFIG)
SUB_TARGET                  += $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_DIR)/build

PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_sh = $(CONFIG_SHELL) $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_SCRIPTS) \
                 $1X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_NAME)X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_VERSION)X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_SITE)X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_GITHUB)X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_PATCH)X \
                 $(CONFIG_LINUX_KERNEL_VERSION)X \
	         $(CONFIG_MAIN_PROJ_NAME)X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_TAR)X \
                 $(CONFIG_LINUX_KERNEL_CROSS_COMPILE)X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_SUBNAME)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_CONFIG)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_LIBPATH)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_CPPFLAGS)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_DPKCONFIG)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_CFLAGS)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_LDFLAGS)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_CXXFLAGS)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_ASFLAGS)X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_BSBIT)X \
                 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_BUILDARCH)X \
		 $(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_CSRCFILE)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_SRCFILE)X \
                 $(CONFIG_PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_CSRCFILE)

$(PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_DIR)/build: FORCE
	$(Q)$(call PK_MEMBLOCK_MEMBLOCK_ALLOC_FROM_sh,$(srctree))
